<?php if (!defined('BASEPATH'))exit('No direct script access allowed');
/**
 * 文章控制器
 */
class About extends MY_Controller {

    function __construct() {
        parent::__construct();
        $this->assign("action", "about");
    }
    //首页
    function index() {
        //总投资金额
        $total_invest_amount = $this->db->select('SUM(amount) total_amount')->from('plat_invest_list')->get()->row_array();
        $total_invest_amount = number_format(intval($total_invest_amount['total_amount']+244828480));
        $this->assign("total_invest_amount", $total_invest_amount);
        //总人数
        $total_users = $this->db->query('select count(*) total from tan_users order by user_id desc')->row_array();
        $total_users = $total_users['total'];
        $total_users = number_format($total_users - 2500);
        $this->assign("total_users", $total_users);
        $this->display('about/index.html');
    }
    
}
